﻿using System;
using LinQProject;
using ServiceProject;
using ServiceProject.EntityService;


public partial class controls_ucMostWanted : System.Web.UI.UserControl
{
  //  protected OrderBussiness ordBussiness=new OrderBussiness(new OrderService(database),new OrderDetailService(database),new ProductDetailService(database),new ProductService(database));
    private static FarmacieDataClassesDataContext database = new FarmacieDataClassesDataContext();

    protected void Page_Load(object sender, EventArgs e)
    {
        SetImagePath();
    }

    public void SetImagePath()
    {
        //Product productToDisplay = ordBussiness.GetMostOrderedProduct();
        //if (productToDisplay == null)
        //{
        //    productToDisplay = new ProductService(database).GetAllProducts()[0];
        //}
        //img.ImageUrl = "~/"+productToDisplay.ProductPhotoPath;
        //lblName.Text = productToDisplay.ProductName;
    }
}